package com.thh.project;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @description:启动类
 * @author: thh
 * @time: 2020/6/21 12:26
 */
//@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class,MongoAutoConfiguration.class, MongoDataAutoConfiguration.class})
@SpringBootApplication
@Slf4j
@MapperScan(basePackages = {"com.thh.project.mapper"})
@EnableScheduling
@EnableAsync
@MapperScan(basePackages = {"com.thh.project.common.init"})
public class ProjectJarApplication {
    public static void main(String[] args) {
        log.info("项目启动了！！！！");
        SpringApplication.run(ProjectJarApplication.class,args);
    }
}
